﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 预生产计划产品关联表
    /// </summary>
    [SugarTable("PreProducs")]
    public class PreProducs: Audit
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int PreProducsId { get; set; } // 预生产计划产品id
        public string? PPDocuNumber { get; set; } // 单据编号
        public int? ProductId { get; set; } // 产品id
        public int? PPsNum { get; set; } // 本次计划数量
        
        public DateTime? PPsDeliveryDate { get; set; } // 交货日期
        /// <summary>
        /// 产品编号
        /// </summary>
        public string? PNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? PName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string? PSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? PUnit { get; set; }
        public string? PPsSmark { get; set; } // 备注
    }
}
